package com.le.tester.imooc.oldimmortal.coding.proxy;

import org.junit.Test;

import java.lang.reflect.InvocationTargetException;

/**
 * createTime：2025-05-19 15:01
 * description：
 */
public class ProxyExampleTest {
    @Test
    public void testProxy() throws NoSuchMethodException, InstantiationException, IllegalAccessException, InterruptedException, InvocationTargetException {
        IOrder order = Aspect.getProxy(Order.class, "com.le.tester.imooc.oldimmortal.coding.proxy.TimeUsageAspect");
        order.pay();
        order.show();
    }
}
